package at.fhooe.im440.pandora.entities;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.geom.Point2D;

import at.fhooe.im440.pandora.collision.CircleCollider;
import at.fhooe.im440.pandora.core.Core;

public class PacPill extends Entity {

	private float size;

	private float x;
	private float y;

	public PacPill(Core core, String name, float x, float y, float size) {
		super(name, core, x, y, size/2.0f);
		this.x = x;
		this.y = y;
		this.size = size;
	}

	@Override
	public void render(Graphics2D g) {
		g.setColor(Color.black);
		g.fillOval((int) x, (int) y, (int) size, (int) size);

	}

	@Override
	public void update() {
	}

	@Override
	public Point2D getPosition() {
		return new Point2D.Float(x,y);
	}

	@Override
	public void setPosition(float x, float y) {
				
	}

	@Override
	public void collided(CircleCollider col) {
		// TODO Auto-generated method stub
		
	}
}
